#include "BBObject.h"

BBDisplayObject::BBDisplayObject(void)
{
}

BBDisplayObject::~BBDisplayObject(void)
{
}

void BBDisplayObject::onEnter()
{
	CCNode::onEnter();
}

void BBDisplayObject::addDisplayObject( BBDisplayObject* obj )
{
	addDisplayObject(obj,-1,-1);
}

void BBDisplayObject::addDisplayObject( BBDisplayObject* obj,int priority,int tag )
{
	if(obj == NULL)
		return;
	addChild(obj,priority,tag);
}

void BBDisplayObject::removeDisplayObject( BBDisplayObject* obj,bool isClear /*= true*/ )
{
	if(obj == NULL)	
		return;
	removeChild(obj,isClear);
}

void BBDisplayObject::removeDisplayByTag( int tag,bool isClear /*= true*/ )
{
	removeChildByTag(tag,isClear);
}
